Create /top-helper-ai
slash command
#1163
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a new slash command
/top-helper-ai
. The idea of this command is to use ChatGPT to determine who the top helpers of the current month are.The command works like this:
#questions
forum channelThis PR is the first take. In a thread that has multiple top helpers, only 1 of them will be the "top" helper. We'll see how it goes. Should this work very well, the next step would be to enchance it to detect multiple helpers in a given question.
Why even create this command?
The TJ moderators currently determine the top helper based on message length. The frequent messaging (or long length messages) the more likely you are to be the top helper. This includes "shit posting" and if you're a recognised member (say, you're fairly active), the team might confuse your shit post with actual helpful content.
Top helper is a role given to people that provide quality help in the questions forum. As such, we often reward helpers with Intellij licenses and other incentives so it's pretty crucial that we are awarding such things to users that actually post helpful responses to questions.
Using ChatGPT is an attempt to better this process to keep the questions forum a helpful space.
The prompt sent to ChatGPT
The prompt sent to ChatGPT looks like this:
After that prompt, the
%s
is replaced with all the messages in the following syntax;<userId>: <message>
A sample:
In this example, we would hope that
123456789
is the top helper.Code exludes the OP and bots from being the top helper.
Full prompt sent:
Command output:
Embed containing: